//
//  ZWPopver.swift
//  张伟的微博
//
//  Created by 伟 on 16/3/2.
//  Copyright © 2016年 伟. All rights reserved.
//

import UIKit

class ZWPopver: UITableViewController {

    let date = ["首页", "好友圈", "群微博", "我的微博", "新浪微博"]
let reuseIdentifier = "reuseIdentifier"
    override func viewDidLoad() {
        super.viewDidLoad()
        //注册Cell
        tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: reuseIdentifier)

    }

  

}

extension ZWPopver {
    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return date.count
    }
    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier(reuseIdentifier, forIndexPath: indexPath)
        cell.textLabel?.text = date[indexPath.row]
        return cell
    }

}
